public class ThreadDemo4 {
    public static void main(String[] args) {
        MyThread2 myThread2=new MyThread2();

    }
}
class MyThread2 implements Runnable{
    public void run(){
        Thread thread=Thread.currentThread();
        System.out.println("线程执行："+thread.getName());
    }
}
